#= Class Token
# Abstract class that defines the tokens of the language 'Vectorinox'
# == Class attributes
# * regexp: Regular expression that defines the token.
# == Instance atttibutes
# * column: Column in the input file where the token was found.
# * row: Row in the input file where the token was found.
# * type: General clasification of the token.
# * value: Value of the string that matched the regular expression.

class Token
  attr_writer :column, :row, :value
  attr_reader :column, :row, :value
  
# == Method to_s
# Public method that overrides to_s method from parent class 'Object'.
#
  def to_s
    return "#{self.class} #{@value} (Linea #{@row}, Columna #{@column})"
  end
end